<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>     &raquo; \tfc\auth
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            
    <div class="row">

        <div class="span4">
            <div class="btn-group view pull-right" data-toggle="buttons-radio">
                <button class="btn details" title="Show descriptions and method names">
                    <i class="icon-list"></i></button><button class="btn simple" title="Show only method names">
                    <i class="icon-align-justify"></i>
                </button>
            </div>
            <ul class="side-nav nav nav-list">
                <li class="nav-header">
                    <i class="icon-map-marker"></i> Namespaces
                </li>
                    
    
            </ul>
        </div>

        <div class="span8 namespace-contents">
                
    
        <ul class="breadcrumb">
            <li><a href="../index.html"><i class="icon-th"></i></a></li>
                
                
    
    <li>
        <span class="divider">\</span><a href="../namespaces/tfc.html">tfc</a>
    </li>

    
    <li>
        <span class="divider">\</span><a href="../namespaces/tfc.auth.html">auth</a>
    </li>

        </ul>

        
        
                    <div class="namespace-indent">
                <h3><i class="icon-custom icon-class"></i> Classes, interfaces and traits</h3>
                
                
                                        <div id="class_Role" class="element ajax clickable class" data-toggle="collapse" data-target="#class_Role .collapse">
        <h1>Role<a href="../classes/tfc.auth.Role.html">¶</a></h1>
        <p class="short_description">Role class file
用户角色类</p>
        <div class="details collapse"></div>
        <a href="../classes/tfc.auth.Role.html" class="more">« More »</a>    </div>

                                        <div id="class_Identity" class="element ajax clickable class" data-toggle="collapse" data-target="#class_Identity .collapse">
        <h1>Identity<a href="../classes/tfc.auth.Identity.html">¶</a></h1>
        <p class="short_description">Identity class file
用户身份管理类</p>
        <div class="details collapse"></div>
        <a href="../classes/tfc.auth.Identity.html" class="more">« More »</a>    </div>

                                        <div id="class_Authentica" class="element ajax clickable class" data-toggle="collapse" data-target="#class_Authentica .collapse">
        <h1>Authentica<a href="../classes/tfc.auth.Authentica.html">¶</a></h1>
        <p class="short_description">Authentica class file
用户身份认证类</p>
        <div class="details collapse"><p>配置 /cfg/app/appname/main.php：</p>
<pre>
return array (
  'account' => array (
    'key_name' => 'auth_administrator',      // 密钥配置名
    'domain' => '',                          // Cookie的有效域名，缺省：当前域名
    'path' => '/',                           // Cookie的有效服务器路径，缺省：/
    'secure' => false,                       // FALSE：HTTP和HTTPS协议都可传输；TRUE：只通过加密的HTTPS协议传输，缺省：FALSE
    'httponly' => true,                      // TRUE：只能通过HTTP协议访问；FALSE：HTTP协议和脚本语言都可访问，容易造成XSS攻击，缺省：TRUE
    'expiry' => WEEK_IN_SECONDS,             // 记住密码时间
    'cookie_name' => 'atrid',                // Cookie名
    'cookset_password' => false,             // Cookie中设置密码，该配置不用于此类
    'cookset_rolenames' => true,             // Cookie中设置用户拥有的角色名，该配置不用于此类
    'cookset_appnames' => true,              // Cookie中设置用户拥有权限的项目名，该配置不用于此类
  ),
)
</pre>
<p>配置 /cfg/key/cluster.php：</p>
<pre>
return array (
  'auth_passport' => array (
    'crypt' => 'UViRN53uj7yZ5IAfdIGiq5bvRuCH9njd', // 加密密钥
    'sign' => 'xwFVMiM98nzW6PwW9jxCmT2mLTv5IJES',  // 签名密钥
    'expiry' => MONTH_IN_SECONDS,                  // 缺省的密文有效期，如果等于0，表示永久有效，单位：秒
    'rnd_len' => 20                                // 随机密钥长度，取值 0-32
  ),
)
</pre></div>
        <a href="../classes/tfc.auth.Authentica.html" class="more">« More »</a>    </div>

                                        <div id="class_Authoriz" class="element ajax clickable class" data-toggle="collapse" data-target="#class_Authoriz .collapse">
        <h1>Authoriz<a href="../classes/tfc.auth.Authoriz.html">¶</a></h1>
        <p class="short_description">Authoriz class file
用户身份授权类</p>
        <div class="details collapse"></div>
        <a href="../classes/tfc.auth.Authoriz.html" class="more">« More »</a>    </div>

                            </div>
            
    
        </div>
    </div>
    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:37 +0000.<br/>
    </footer>
    </body>
</html>
